﻿@model LogManager.Base.IEvent

<table class="properties" >        
    <thead>
        <tr>
            <th class="name">Name</th>
            <th class="value">Value</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>
                <div class="display-label">
                    @Html.LabelFor(m => m.Id)
                </div>
            </td>
            <td>
                <div class="display-field">
                    @Html.DisplayFor(m => m.Id)
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="display-label">
                    @Html.LabelFor(m => m.Level)
                </div>
            </td>
            <td>
                <div class="display-field">
                    @Html.DisplayFor(m => m.Level)
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="display-label">
                    @Html.LabelFor(m => m.Message)
                </div>
            </td>
            <td>
                <div class="display-field">
                    @Html.DisplayFor(m => m.Message)
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="display-label">
                    @Html.LabelFor(m => m.TimeStamp)
                </div>
            </td>
            <td>
                <div class="display-field">
                    @Html.DisplayFor(m => m.TimeStamp)
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="display-label">
                    @Html.LabelFor(m => m.User)
                </div>
            </td>
            <td>
                <div class="display-field">
                    @Html.DisplayFor(m => m.User)
                </div>
            </td>
        </tr>
    </tbody>
</table>   
<br />
<h2>Custom Properties</h2>


<table class="properties" >        
    <thead>
        <tr>
            <th class="name">Name</th>
            <th class="value">Value</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var prop in Model.Properties)
        {
            <tr>
                <td>
                    <div class="display-label" >
                        <label for="@prop.Key">@prop.Key</label>
                    </div>
                </td>
                <td>
                    <div class="display-field">
                        <span id="@prop.Key">@prop.Value</span>                                
                    </div>
                </td>
            </tr>  
        }        
    </tbody>
</table>